<template>
  <div class="container">
    <div class="picbox">
      <img v-if="ossUrl" :src="ossUrl+'/mp_3.2.4/paysuccess@2x.png'" alt />
    </div>
    <div class="text">挂售成功</div>
    <div class="btn" @click="goFleaMarket">查看挂售</div>
  </div>
</template>

<script>
import common from "@/assets/js/mmk_common.js";
export default {
  data() {
    return {
      ossUrl: common.image_resource, //oss图片
      type: "" //1卡 2券
    };
  },
  onLoad(options) {
    // 设置导航栏标题
    wx.setNavigationBarTitle({
      title: "挂售确认"
    });
    // 获取传递参数
    this.type = options.type || "";
  },
  methods: {
    //   跳转跳蚤市场我要卖
    goFleaMarket() {
      wx.navigateTo({
        url: `/pages/ct_store/flea_market/main?type=${this.type}&user_type=2`
      });
    }
  }
};
</script>

<style lang="less" scoped>
.container {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  .picbox {
    width: 70px;
    height: 70px;
    margin: 40px auto 7px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .text {
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: rgba(51, 51, 51, 1);
    line-height: 20px;
  }
  .btn {
    padding: 9px 25px;
    background: linear-gradient(
      226deg,
      rgba(254, 120, 161, 1) 0%,
      rgba(254, 123, 136, 1) 100%
    );
    border-radius: 19px;
    text-align: center;
    font-size: 14px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    line-height: 20px;
    margin-top: 54px;
    box-sizing: border-box;
  }
}
</style>